const router = require('koa-router')()
router.prefix('/views')

const  { create, find, remove } = require('../controllers/views.js')

// 创建用户
router.post('/', create)//ctx.request.body

router.get('/', find)//ctx.request.body
router.delete('/:id', remove)//ctx.request.body

module.exports = router